<template>
  <div style="padding: 15px 0">
    <el-row justify="start">
      <el-col :span="6">
        <el-card shadow="hover" style="margin: 15px">
          <div
            style="
              height: 220px;
              display: flex;
              flex-direction: column;
              align-items: center;
              background: #f7f7f7;
              justify-content: center;
              cursor: pointer;
            "
          >
            <Icon icon="material-symbols-light:add" color="#dddddd" :size="120" />
            <el-text size="large">新建推送任务</el-text>
          </div>
        </el-card>
      </el-col>
      <el-col :span="6">
        <el-card shadow="hover" style="margin: 15px" @click="infoShow = true">
          <div
            style="
              height: 220px;
              display: flex;
              flex-direction: column;
              align-items: center;
              justify-content: center;
              cursor: pointer;
            "
          >
            <icon icon="logos:oracle" :size="65" />
            <div class="arrow-dotted-down">
              <div class="line"></div>
            </div>
            <icon icon="logos:oracle" :size="65" />
            <el-text size="small">指挥系统推送</el-text>
          </div>
        </el-card>
      </el-col>
    </el-row>
    <el-drawer v-model="infoShow" :destroy-on-close="true" direction="btt" size="100%" title="流程">
      1
    </el-drawer>
  </div>
</template>
<script setup lang="ts">
import { ref } from 'vue'
const infoShow = ref(false)
</script>
<style scoped lang="less">
.arrow-dotted-down {
  width: 10px;
  flex: 1;
  display: inline-block;
  position: relative;
}

.arrow-dotted-down::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: -1px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 10px solid #034d9a;
  border-bottom: 0 solid transparent;
}

.arrow-dotted-down .line {
  box-sizing: border-box;
  position: absolute;
  width: 50%;
  height: 100%;
  border-right: 2px dashed #034d9a;
}
</style>
